package com.lichuang.fruitvarietysm.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author shuaihang
 * @since 2019-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shipping_address")
@ApiModel(value = "ShippingAddress对象", description = "收货地址表")
public class ShippingAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收货地址id")
    @TableId(value = "shipping_id", type = IdType.AUTO)
    private Integer shippingId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "收获姓名")
    private String receiverName;

    @ApiModelProperty(value = "收获固定电话")
    private String receiverPhone;

    @ApiModelProperty(value = "收获移动电话")
    private String receiverMobile;

    @ApiModelProperty(value = "省份")
    private String receiverProvince;

    @ApiModelProperty(value = "城市")
    private String receiverCity;

    @ApiModelProperty(value = "区/县")
    private String receiverDistrict;

    @ApiModelProperty(value = "街道")
    private String receiverRow;

    @ApiModelProperty(value = "详细地址")
    private String receiverAddress;

    @ApiModelProperty(value = "邮编")
    private String receiverZip;

    @ApiModelProperty(value = "是否是默认收货地址，0=否，1=是")
    private Integer isDefault;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态，1=正常，2=禁用")
    private Integer status;


}
